import Vue from 'vue'
import Router from 'vue-router'
import LoginRouter from './login'
import MainRouter from './main'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '*', // 重定向
      redirect: '/main'
    },
    LoginRouter,
    MainRouter
  ]
})
